import { createPersistStore } from "../utils/store";
const DEFAULT_STABLEDIFFUSION_STATE = {};

export const useStableDiffusionStore = createPersistStore(
  { ...DEFAULT_STABLEDIFFUSION_STATE },

  (set, get) => ({
    reset() {
      set(() => ({ ...DEFAULT_STABLEDIFFUSION_STATE }));
    },
  }),
  {
    name: "ZHIPUStore", // Replace with your preferred name
    version: 2,
    migrate(persistedState) {
      // Migration logic if needed
      return persistedState as any;
    },
  },
);
